import request from '../utils/request'

export function donors (params) {
  return request({
    url: '/index/donors',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    data: params
  })
}

export function income (params) {
  return request({
    url: '/index/income',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    data: params
  })
}

export function rank (params) {
  return request({
    url: '/index/rank',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    data: params
  })
}
